Ext.ns('Tm.common');

Tm.common.CommonMultiselect = Ext.extend(Ext.ux.form.MultiSelect, {


			initComponent : function() {

				Tm.common.CommonMultiselect.superclass.initComponent.call(this);

			},
			setValue : function(v) {
				v = (v && v.toString) ? v.toString() : v;
				if (!this.store.isLoaded && this.mode == 'remote') {
					this.store.addListener('load', function() {
								this.store.isLoaded = true;
								this.setValue(v);
							}, this);
					this.store.load();
				} else {
					Tm.common.CommonMultiselect.superclass.setValue.call(this, v);
				}
			}

		});
Ext.reg('commonmultiselect', Tm.common.CommonMultiselect);
